﻿using System.ServiceModel;
using System.ServiceModel.Web;

namespace easytodoservice.Resources
{
    [ServiceContract]
    public class AccountResource
    {
        [WebInvoke(Method = "POST", UriTemplate = "")]
        public int Login(string userName, string password)
        {
            if (userName == "a" && password == "b")
                return 1;

            return 0;
        }
    }
}